package com.lipiao.smarthome.RoomActivity;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.lipiao.smarthome.R;

public class LivingRoomActivity extends AppCompatActivity {

    FloatingActionButton quit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_livingroom);
        initView();
        initListener();
    }

    private void initView() {
        quit=findViewById(R.id.fab_living_room);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
    }

    private void initListener() {
        quit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                onBackPressed();
            }
        });
    }

}
